﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PremesesDetails4.ascx.cs"
    Inherits="Pantry.Web.Users.Controls.PremesesDetails4" %>
<div class="widget_contents noPadding">
    <div class="left_column">
        <div class="grid_line">
            <div class="block_label">
                Room Only Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxRoomOnlyRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                B&B Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxBBRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                DBBRate</div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxDBBRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                DD Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxDDRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                24hr Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBox24hRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Tea and Coffee
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxTeaAndCoffee" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Lunch
            </div>
            <div class="block_input">
                <input type="checkbox" id="CheckBoxLunch" width="70%" class="simple_form" runat="server" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                No of Meeting Rooms
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxNoOfMeetingRooms" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Meeting Rooms Rate Per Day
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxMeetingRoomsRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Codings
            </div>
            <div class="block_input">
                <asp:DropDownList runat="server" ID="DropDownCodings" CssClass="selector" />
            </div>
        </div>
    </div>
    <div class="right_column">
        <div class="grid_line">
            <div class="block_label">
                Negotiated Room Only
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxNegotiatedRoom" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                B & B Negotiated Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxBnBNegotiatedRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                DBB Negotiated Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxDBBNegotiatedRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                DD Negotiated Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxDDNegotiatedRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                24hr Negotiated Rate
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBox24hrNegotiatedRate" Width="70%" CssClass="simple_field" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Last Negotiated Date
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxLastNegotiatedDate" Width="70%" CssClass="simple_field pick_date" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Re-negotiate On
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxRenegotiateOn" Width="70%" CssClass="simple_field pick_date" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Preffered Status
            </div>
            <div class="block_input">
                <asp:DropDownList runat="server" ID="DropDownPrefferedStatus" CssClass="selector" />
            </div>
        </div>
        <div class="grid_line">
            <div class="block_label">
                Comments
            </div>
            <div class="block_input">
                <asp:TextBox runat="server" ID="TextBoxComments" CssClass="textarea_custom" TextMode="MultiLine" />
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    function validateCurrency() {
        var regex = /^\$(\d{1,3}(\,\d{3})*|(\d+))(\.\d{2})?$/ ;
        var matchArray;
        if (document.getElementById("<%=TextBoxRoomOnlyRate.ClientID %>").value != "") {
            var roomOnlyRate = document.getElementById("<%=TextBoxRoomOnlyRate.ClientID %>").value;
            matchArray = roomOnlyRate.match(regex);
            if (matchArray == null) {
                showmessage('Invalid value! Example: 9,999.99', 'ERROR', 'false');
                document.getElementById("<%=TextBoxRoomOnlyRate.ClientID %>").focus();
                return false;
            }
        }
        if (document.getElementById("<%=TextBoxBBRate.ClientID%>").value != "") {
            var bbValue = document.getElementById("<%=TextBoxBBRate.ClientID%>").value;
            matchArray = bbValue.match(regex);
            if (matchArray == null) {
                showmessage('Invalid value! Example: 9,999.99', 'ERROR', 'false');
                document.getElementById("<%=TextBoxBBRate.ClientID%>").focus();
                return false;
            }
        }
        if (document.getElementById("<%=TextBoxDBBRate.ClientID %>").value != "") {
            var dbbValue = document.getElementById("<%=TextBoxDBBRate.ClientID %>").value;
            matchArray = dbbValue.match(regex);
            if (matchArray == null) {
                showmessage('Invalid value! Example: 9,999.99', 'ERROR', 'false');
                document.getElementById("<%=TextBoxDBBRate.ClientID %>").focus();
                return false;
            }

        }

        if (document.getElementById("<%=TextBoxDDRate.ClientID %>").value) {
            var ddValue = document.getElementById("<%=TextBoxDDRate.ClientID %>").value;
        }
        return false;
    }
</script>
